<?php
pdo_query('drop table if exists '.tablename('core_payout_log'));
pdo_query('CREATE TABLE IF NOT EXISTS '.tablename('core_payout_log').' (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `trade_no` char(23) NOT NULL,
  `uniacid` int(10) unsigned NOT NULL,
  `mid` int(10) unsigned NOT NULL,
  `money` decimal(10,2) NOT NULL,
  `createtime` int(10) unsigned NOT NULL,
  `remark` varchar(100) NOT NULL,
  `status` tinyint(1) unsigned NOT NULL,
  `pay_type` tinyint(1) unsigned NOT NULL,
  `out_trade_no` int(11) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=100 ;');